package com.ruoyi.ResDishes.mapper;

import com.ruoyi.ResDishes.domain.ResDishes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ResDishesMapper {
    public List<ResDishes> selectDishesByIf(ResDishes resDishes);
    public List<ResDishes> selectDishesByWhen(ResDishes resDishes);

    @Select("select*from res_Dishes where id= #{id}")
    public ResDishes getDishesById(Long id);

    public int insertNewresDishes(ResDishes resDishes);

    public int updateNewresDishes(ResDishes resDishes);

    public int deleteNewresDishes(int id);
}
